package com.yan.qing.sensitive.entity;

import com.yan.qing.sensitive.annations.SensitiveWrapped;
import com.yan.qing.sensitive.enums.SensitiveEnum;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author Administrator
 */
@Data
@Table (name = "tb_user")
public class UserEntity {
    /**
     * 用户ID
     */
    @Id
    @Column (name = "user_id")
    private Long userId;

    /**
     * 用户姓名
     */
    private String name;

    /**
     * 手机号
     */
    @SensitiveWrapped ( SensitiveEnum.MOBILE_PHONE)
    private String mobile;

    /**
     * 身份证号码
     */
    @SensitiveWrapped(SensitiveEnum.ID_CARD)
    private String idCard;

    /**
     * 年龄
     */
    private String sex;

    /**
     * 性别
     */
    private int age;

}
